<%--
  Created by IntelliJ IDEA.
  User: zyxna
  Date: 2020/8/25
  Time: 12:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>

<html>
<head>
    <title>库存管理</title>
    <link rel="shortcut icon" type="imagges/x-ion" href="resources/img/wareHouse.png"/>
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="resources/css/table.css" />
</head>
<body>


<div id="dv">
    <h3>&nbsp;库存管理</h3>
    </td>

    <div>
        <div style="display: inline-block;">
            <form id="search-form" action="RepertoryServlet?method=SeachNameReper" method="post">
                <input type="text" name="warehousename" value="Search" id="insearch"  onfocus="if (value=='Search'){value=''}" onblur="if (value == ''){value='Search'} " />
                <button  type="submit" style="background-color: #FFFFFF;width: 35px;height: 35px;border-radius: 5px;border-style: none; background-size: 37px;vertical-align: middle;outline: none;">
                    <img type="submit"  src="resources/img/seach.png" style="height: 30px;width: 30px;vertical-align: middle;"/>
                </button>
            </form>
        </div>
    </div>

    <div class="fixedTable">
        <table cellspacing="0" class="myTable" id="nav_tab" align="center">
            <thead>
            <tr id="tr3" bgcolor="#1976d5" >
                <th>仓库ID</th>
                <th>仓库名称</th>
                <th>商品ID</th>
                <th>商品名称</th>
                <th>商品数量</th>
            </thead>
            <tbody class="grid" align="center">
            <c:forEach items="${repertory}" var="item" varStatus="status">
                <tr>
                    <td>${item.warehouseId}</td>
                    <td>
                        <div class="hulue" title="${item.warehouseName }">${item.warehouseName }</div>
                    </td>
                    <td>${item.merchId}</td>
                    <td>
                        <div class="hulue" title="${item.merchname }">${item.merchname }</div>
                    </td>
                    <td>${item.merchSum }</td>
                </tr>
            </c:forEach>

            </tr>


            </tbody>
        </table>
    </div>
</div>

</body >
<script type="text/javascript">


    // //搜索
    // function toSeach() {
    //     var seachVul=document.getElementById("insearch").value;
    //     console.log(seachVul)
    //     if(seachVul=="ALL"){
    //         window.location.href="wareHouseServlet?method=wareHouseSelect";
    //     }else{
    //         window.location.href="wareHouseServlet?method=wareHouseOne&whName="+seachVul;
    //     }
    // }





</script>
</html>
